<!--
 * @description: 
 * @Author: Islands
 * @Date: 2024-06-18 10:03:49
 * @LastEditTime: 2024-06-19 17:31:48
-->
<script lang="ts" setup>
import Iconfont from "../iconfont/index.vue";
import { iconProps } from "../props";
const { type, color, size, tooltipTitle, onClick } = defineProps(iconProps);
</script>
<template>
  <el-tooltip placement="bottom" :content="tooltipTitle">
    <el-button
      style="padding: 8px"
      text
      :type="type"
      :color="color"
      @click="onClick"
    >
      <Iconfont :icon="icon" :size="size" />
      <slot />
    </el-button>
  </el-tooltip>
</template>
<style lang="scss" scoped>
</style>
